﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DotSpatial.Topology;

namespace HAGISV2
{
    /// <summary>
    /// 具体坐标更改事件类
    /// </summary>
    public class HGMSMoveCoordinateEventArgs:EventArgs
    {
        public HGMSMoveCoordinateEventArgs(string layerId,string featureId,List<int> coordIndex,Coordinate coordinates)
        {
            this._layerId = layerId;
            this._featureId = featureId;
            this._coordIndex = coordIndex;
            this._newCoordinate = coordinates;
        }

        Coordinate _newCoordinate;
        /// <summary>
        /// 更改后的新坐标
        /// </summary>
        public Coordinate NewCoordinate
        {
            get { return _newCoordinate; }
            set { _newCoordinate = value; }
        }

        string _layerId = "";

        public string LayerId
        {
            get { return _layerId; }
            set { _layerId = value; }
        }

        string _featureId = "";
        /// <summary>
        /// 
        /// </summary>
        public string FeatureId
        {
            get { return _featureId; }
            set { _featureId = value; }
        }

        List<int> _coordIndex;
        /// <summary>
        /// 所需更改的点坐标所在位置
        /// </summary>
        public List<int> CoordIndex
        {
            get { return _coordIndex; }
            set { _coordIndex = value; }
        }
    }
}
